beginobjectscript; // talking object

variables;

body;

beginstate INIT_STATE;
	set_obj_act_at_dist(ME,1);
	break;

beginstate DEAD_STATE;
	break;

beginstate START_STATE; 
	if ((portal_convo() > 0) && (dist_to_party() <= 4) && (gf(0,28) == 0) && (gf(0,20) == 0)) {
		sf(0,28,1);
		talk_no_exit(10098);
		}
	break;

beginstate RUN_ANIM_STATE;
	if ((portal_convo() > 0) && (get_ran(1,0,100) < 80)) {
		run_sfx_on_object(ME,189,1,1);
		}		
		
	break;

beginstate USE_STATE;
	if (portal_convo() == 0) {

		talk_no_exit(10099);
		}
		else {
			sf(0,20,1);
			talk_no_exit(portal_convo());
			}
break;
